package com.cloud.open.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.common.bean.PageInfo;
import com.cloud.open.dto.ResourceQueryParamDTO;
import com.cloud.open.entity.Resource;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  授权资源服务类
 * </p>
 *
 * @author wenjin
 * @since 2019-09-25
 */
public interface ResourceService extends IService<Resource> {

    boolean checkNameExist(String name, Integer typeId, Integer ignoreId);

    boolean checkAccessUriExist(String accessUri, Integer typeId, Integer ignoreId);

    PageInfo<Resource> getPage(ResourceQueryParamDTO paramDTO);

    List<Resource> getByTypeId(Serializable typeId);

    List<Resource> getAll();

    boolean deleteByTypeId(Serializable typeId);

}
